package com.ltz.dao.login;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.ltz.dao.base.BaseDao;
import com.ltz.model.User;

@Repository
public class LoginDao extends BaseDao{
	public User getUser(String userName,String password){
		String sql="select * from mn_user where USERNAME=? and PASSWORD=? limit 0,1";
		List<User> list=this.find(sql, User.class, new Object[]{userName,password});
		if(null!=list&&list.size()>0){
			return list.get(0);
		}
		return null;
	}
}
